<ul class="list-group row">

  @foreach ($sections as $index => $section)
   <li class="list-group-item media"
           @if($section->vote_count >= 2)
                style="margin-top: 0px; background-color: #fffce9"
           @else
                style="margin-top: 0px;"
           @endif
           >

    <div class="avatar pull-left">
        <h5 class="badge">{{ $section->title }}</h5>
    </div>

    <div class="infos">

      <div class="media-heading meta">

        <a href="{{ route('users.show', [$section->user_id]) }}" title="{{{ $section->user->name }}}" class="remove-padding-left author">
            {{{ $section->user->name }}}
        </a>

        <span> •  </span>
        <abbr class="timeago" title="{{ $section->created_at }}">{{ $section->created_at }}</abbr>

        <span class="operate pull-right">
          <a href="{{ $section->experiment_url }}" title="{{ lang('Experiment') }}">
            <i class="fa fa-lightbulb-o" aria-hidden="true"></i>
          </a>
          <a href="{{ route('sections.show', [$section->id]) }}" title="{{ lang('Detail') }}">
            <span> •  </span>
            <i class="fa fa-eye" aria-hidden="true"></i>
          </a>
          @if($currentUser && $currentUser->present()->joinedLab($lab) == 'yes')
          <span> •  </span>
          <a href="{{ route('reports.create', ['section_id' => $section->id]) }}" title="{{ lang('Write Report') }}">
            <i class="fa fa-pencil" aria-hidden="true"></i>
          </a>
          @endif
          @if ($currentUser && ($currentUser->can("manage_sections") || $currentUser->id == $section->user_id) )
          <span> •  </span>
          <a href="{{ route('sections.edit', [$section->id]) }}" title="{{ lang('Edit') }}">
            <i class="fa fa-pencil-square-o"></i>
          </a>
          @endif
          @if ($currentUser && ($currentUser->can("manage_sections") || $currentUser->id == $section->user_id) )
            <span> •  </span>
            <a id="reply-delete-{{ $section->id }}" data-method="delete"  href="javascript:void(0);" data-url="{{ route('sections.destroy', [$section->id]) }}" title="{{ lang('Delete') }}">
                <i class="fa fa-trash-o"></i>
            </a>
          @endif
        </span>

      </div>

      <div class="media-body markdown-reply content-body">
      </div>

    </div>

  </li>
  @endforeach

</ul>
